const { ipcMain, shell } = require("electron")
ipcMain.on("open-external", (event, url) => {
    shell.openExternal(url).catch(err => console.error(err));
});